-
Notifications
You must be signed in to change notification settings - Fork 363
chore(deps): Move to cosmos-sdk v0.50
official release
#1296
Conversation
# Walkthrough
The changes primarily revolve around the restructuring and enhancement of the Cosmos SDK application's initialization and configuration process. The modifications involve the addition of new functions, import statements, and command initializations, along with significant alterations to the `NewRootCmd` function and the handling of client context and keyring.
# Changes
| File Path | Change Summary |
| --- | --- |
| e2e/testapp/.../commands.go | Added import statements, function definitions, and command initializations. Introduced `initCometBFTConfig` and `initAppConfig` functions for custom configuration setup. Defined `newApp` and `appExport` functions for application creation and export. |
| e2e/testapp/.../root.go | Made significant changes to `NewRootCmd` function, introducing `clientCtx` and `txConfig` variables, and modifying the initialization process. Introduced `ProvideClientContext` and `ProvideKeyring` functions. Removed `initCometBFTConfig` and `initAppConfig` functions. Updated `genesisCommand`, `queryCommand`, and `txCommand` functions, altering the command structure. |
# Poem
> 🍂 As the leaves fall, so does the old code,
> Replaced by the new, a sight to behold.
> With Cosmos SDK in our stride,
> We've taken the software for a joyride.
> 🚀 Launching new functions into the sky,
> Watching as the old bugs say goodbye.
> On this day, in code we trust,
> Making changes that are robust.
> 🐇 CodeRabbit hops with glee,
> Celebrating the changes, as easy as one, two, three! TipsChat with CodeRabbit Bot (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review Status
Actionable comments generated: 0
Configuration used: CodeRabbit UI
Files ignored due to filter (11)
- build/tools/go.mod
- build/tools/go.sum
- cosmos/go.mod
- cosmos/go.sum
- e2e/precompile/go.mod
- e2e/precompile/go.sum
- e2e/testapp/go.mod
- e2e/testapp/go.sum
- eth/go.mod
- eth/go.sum
- go.work.sum
Files selected for processing (2)
- e2e/testapp/polard/cmd/commands.go (1 hunks)
- e2e/testapp/polard/cmd/root.go (3 hunks)
Files skipped from review due to trivial changes (1)
- e2e/testapp/polard/cmd/commands.go
Additional comments: 6
e2e/testapp/polard/cmd/root.go (6)
57-62: The
NewRootCmd
function has been updated to includeclientCtx
as a local variable. Ensure that this change doesn't break any existing functionality that relies on the previous version of this function.74-78: The
depinject.Provide
function now includesProvideClientContext
andProvideKeyring
. Ensure that these functions are correctly implemented and that they return the expected types.88-88: The
ethcryptocodec.RegisterInterfaces
function is called withclientCtx.InterfaceRegistry
as an argument. Ensure thatclientCtx.InterfaceRegistry
is correctly initialized before this call.90-122: The
PersistentPreRunE
function ofrootCmd
has been significantly modified. Ensure that these changes don't break any existing functionality that relies on the previous version of this function.134-162: The
ProvideClientContext
function is introduced. Ensure that this function is correctly implemented and that it returns the expected type.164-171: The
ProvideKeyring
function is introduced. Ensure that this function is correctly implemented and that it returns the expected type.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
## Summary by CodeRabbit The existing bullet-point list is still valid based on the provided instructions. (cherry picked from commit 9eacb8c)
) (#1297) Co-authored-by: Devon Bear <[email protected]>
Summary by CodeRabbit
The existing bullet-point list is still valid based on the provided instructions.